<?php
class PC4_Controlador_Plugin_InitSimplaAdmin extends PC4_Controlador_Plugin_Auth {
	protected function init($identity) {
		parent::init($identity);
		
        // pega a instância do layout
        $layout = Zend_Layout::getMvcInstance();
        // altera o layout
        $layout->setLayout('simpla_admin');
		$view = Zend_Controller_Action;
		$request = $this->getRequest();
		if ($request->getModuleName() == 'admin' && $identity->role != 'admin') {
			//die('Pagina n&atilde;o encontrada.');
			//$view->redirect('admin');
		}
	}
}